package com.mebs.model.logistics;

import org.jt.jet.content.JetNamedObject;

public enum LocationType implements JetNamedObject {
    SITE(1, "Site"),
    PORT(2, "Port"),
    DOOR(3, "Door");

    public final int type;
    public final String name;

    LocationType(int type, String name)
    {
        this.type = type;
        this.name = name;
    }

    public static LocationType getObjectByType(int type)
    {
        return LocationType.values()[type - 1];
    }

    public Object getObjectId()
    {
        return type;
    }

    public String getObjectName()
    {
        return name;
    }

    public int getType()
    {
        return type;
    }

    public String getName()
    {
        return name;
    }
}
